package com.hcb.micro.util;

/** 
 * @author  作者 E-mail <a href="mailto:kelianlang@126.com">陈聚波</a> 
 * @version 创建时间：2010-8-2 下午02:11:02 
 * 类说明 
 */

public class HttpSessionUtil
{
//	public static void setSessionUser(UserDTO user)
//	{
//		HttpServletRequest request = ServletActionContext.getRequest();
//		HttpSession session = request.getSession(true);
//		session.setAttribute(ConstantUtil.KEY_SESSION_USER, user);
//	}
	
	/*public static Merchant getSessionUser(HttpServletRequest request )
	{
		HttpSession session = request.getSession();
        if(session == null) {
        	return null;	
        }
        Merchant merchant = (Merchant) session.getAttribute("morgen_user");
		return merchant;
	}
	
	public static Partner getSessionPartner(HttpServletRequest request )
	{
		HttpSession session = request.getSession();
        if(session == null) {
        	return null;	
        }
        Partner partner =  (Partner) session.getAttribute("morgen_user");
		return partner;
	}*/
}
